<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>
	<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
		google calendar /toodledo sync
	<?php } else {?>
		googleカレンダー／toodledo 同期サービス
	<?php }?>
</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="http://minder.minibird.jp/life/my.css" rel="stylesheet">
	<script type="text/javascript">
	$(function() {

	});
</script>
</head>
<body>
<div id="header">
<h1>
<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
	Google Calendar / Toodledo Sync
<?php } else {?>
	Googleカレンダー／Toodledo同期サービス
<?php }?>
</h1>
</div>
<?php if ($this->errMessage != '') {?>
	<div style='color:RED;'>
		<?php echo $this->errMessage;?>
	</div>
<?php }?>
<hr />
<form id="form-sync" method="post" name="form-sync" target="_self" action="<?php echo DOCUMENT_BASE_DIR;?>/index/wait">
<h3>
	<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
		Google Calendar
	<?php } else  {?>
		Googleカレンダー
	<?php }?>
</h3>

<table border="0" cellpadding="1" cellspacing="1" style="margin-bottom:10px">
	<tbody>
		<tr style="display: none">
			<td>　</td>
			<td>
				<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
					User name
				<?php } else {?>
					ユーザ名
				<?php }?>
			</td>
			<td>
				<input  size="25" type="text"
					name="<?php echo Models_AuthController::KEY_CALENDAR_USER;?>"
					value="<?php echo $this->auth->getValue(Models_AuthController::KEY_CALENDAR_USER);?>" />
			</td>
		</tr>
		<tr style="display: none">
			<td>&nbsp;</td>
			<td>
				<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
					password
				<?php } else {?>
					パスワード
				<?php }?>
			</td>
			<td>
				<input size="25" type="password"
					name="<?php echo Models_AuthController::KEY_CALENDAR_PASSWORD;?>"
					value="<?php echo $this->auth->getValue(Models_AuthController::KEY_CALENDAR_PASSWORD);?>" />
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>
				<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
					my calendar
				<?php } else {?>
					マイカレンダー
				<?php }?>
			</td>
			<td>
				<input size="25" type="text"
					 name="<?php echo Models_AuthController::KEY_CALENDAR_NAME;?>"
					 value="<?php echo $this->auth->getValue(Models_AuthController::KEY_CALENDAR_NAME);?>" />
			</td>
		</tr>
	</tbody>
</table>

<h3>toodledo</h3>

<table border="0" cellpadding="1" cellspacing="1" style="margin-bottom:10px">
	<tbody>
		<tr>
			<td>　</td>
			<td>Unique ID</td>
			<td>
				<input size="25" type="text"
					 name="<?php echo Models_AuthController::KEY_TASK_USER;?>"
					 value="<?php echo $this->auth->getValue(Models_AuthController::KEY_TASK_USER);?>" />
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>
				<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
					password
				<?php } else {?>
					パスワード
				<?php }?>
			</td>
			<td>
				<input size="25" type="password"
					 name="<?php echo Models_AuthController::KEY_TASK_PASSWORD;?>"
					 value="<?php echo $this->auth->getValue(Models_AuthController::KEY_TASK_PASSWORD);?>" />
			</td>
		</tr>
	</tbody>
</table>
<div>
	<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
		The "Unique ID" is not "Login Email". Please confirm it with <a href="http://www.toodledo.com/account_edit.php" target="_blank">Settings screen</a> of "Toodledo".
	<?php } else {?>
		Unique IDは、Login Emailのことではありません。toododoの<a href="http://www.toodledo.com/account_edit.php" target="_blank">Settings画面</a>でご確認ください。
	<?php }?>
<br />
&nbsp;</div>

<h2>Syncronizing</h2>

<div>
	<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
		<input name="button-sync" type="submit" value="Sync" />
	<?php } else {?>
		<input name="button-sync" type="submit" value="同期" />
	<?php }?>
</div>
</form>

<hr />
<p>
	<?php if ($this->session->getValue(IndexController::KEY_LANG) == IndexController::VALUE_ENGLISH) {?>
		Watch your risk that  your passwords can not  be protected.
	<?php } else {?>
		&nbsp;このサービスは一般のかたもご利用になることができますが、ユーザ名とパスワードをサイト管理者にたいし隠蔽することができないことをご理解の上ご利用下さい。
	<?php }?>
	<a target="_blank" href="https://www.facebook.com/pages/Google%E3%82%AB%E3%83%AC%E3%83%B3%E3%83%80%E3%83%BCtoodldo%E3%82%B7%E3%83%B3%E3%82%AF%E3%83%AD%E3%83%8A%E3%82%A4%E3%82%B6%E3%83%BC/234574753371273?"><img alt="facebook" src="facebook.png"></a>
	<a target="_blank" href="https://plus.google.com/117577195136821992227"><img alt="google-plus" src="google-plus.png"></a>

</p>

<hr />
<p>
	Copyright (C) 2014 copyrights.shichini hariu All Rights Reserved.
</p>


</body>
</html>